package cn.hfjava.kz.exception;

import cn.dev33.satoken.util.SaResult;

/**
 * 自定义业务异常
 */
public class BizException extends RuntimeException {

   private int code;
   private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public BizException(int code, String message){



        super(message);
        this.code = code;
        this.message = message;
   }

    public BizException(int code,String message,Throwable cause){
        super(message,cause);
        this.code = code;
        this.message = message;
    }
}
